TAGs: Factor the polynomial